import 'package:flutter/material.dart';

import 'index_main_widget.dart';
import 'index_my_data.dart';

class MyMainPage extends StatelessWidget {
  const MyMainPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.all(6),
      child: Wrap(
          //设置边距
          spacing: 1.0,
          runSpacing: 1.0,
          children: list
              .map(
                (e) => MyMainWidget(e),
              )
              .toList()),
    );
  }
}
